package com.taxigang.client.uibinder;

import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.DockPanel;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.google.gwt.user.client.ui.AbsolutePanel;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.Image;

public class MyComposite extends Composite {

	public MyComposite() {
		
		VerticalPanel verticalPanel = new VerticalPanel();
		verticalPanel.setBorderWidth(1);
		initWidget(verticalPanel);
		verticalPanel.setSize("100%", "100%");
		
		AbsolutePanel absolutePanel = new AbsolutePanel();
		verticalPanel.add(absolutePanel);
		
		Label lblNewLabel = new Label("New label");
		absolutePanel.add(lblNewLabel);
		
		Button btnNewButton = new Button("New button");
		absolutePanel.add(btnNewButton, 213, 0);
		
		HorizontalPanel horizontalPanel = new HorizontalPanel();
		verticalPanel.add(horizontalPanel);
		
		Image image = new Image("images/close.jpg");
		horizontalPanel.add(image);
		image.setSize("334px", "201px");
		
		AbsolutePanel absolutePanel_1 = new AbsolutePanel();
		verticalPanel.add(absolutePanel_1);
		
		Label lblNewLabel_1 = new Label("New label");
		absolutePanel_1.add(lblNewLabel_1);
	}
}
